const express = require('express');
const router = express.Router();
let i = 0;
router.get('/forPartSaleOrder', (req, res) => {
    const {typeId} = req.query;
    if(typeId === '2' && i === 0) {
        i += 1;
        res.status(400).send({
            message: '获取加价率失败'
        });
    } else {
        i = 0;
        res.json({
            message: '查询成功',
            payload: {
                raisingRate: 0.1,
            }
        });
    }
});

module.exports = router;
